package com.ozan.kemal.db;

import java.sql.PreparedStatement;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;

import com.ozan.kemal.utils.Log;

public class DBManager {
	protected DataSource ds=null;
	protected PreparedStatement pst = null;
	
	public DBManager() {

		Context ctx;
		try {
			ctx = new InitialContext();
			ds = (DataSource)ctx.lookup("java:comp/env/jdbc/spokentopics");
		} catch (NamingException e) {
		
			Log.add(e.getMessage());
		
		} catch (Exception e) {
			
			Log.add(e.getMessage());
			
		}
	
	}
	

}
